import 'package:flutter/material.dart';
import 'package:flutter_app/r.dart';
import 'package:flutter_app/values/MyColors.dart';

/**
 * @Description: java类作用描述
 * @Author: 下雨了
 * @CreateDate: 2021-10-21 17:12
 * @UpdateUser: 更新者
 * @UpdateDate:  2021-10-21 17:12
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
///
class CardTest extends StatefulWidget {
  const CardTest({Key? key}) : super(key: key);

  @override
  _CardTestState createState() => _CardTestState();
}

class _CardTestState extends State<CardTest> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: GestureDetector(
        child: Card(
          margin: EdgeInsets.fromLTRB(17, 13.5 , 17, 0),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Padding(
                padding: EdgeInsets.only(left: 24,top: 20,bottom: 20),
                child: Text('意见反馈', style: TextStyle(color: MyColors.FF333333, fontSize: 15),),
              ),
              Padding(
                padding: EdgeInsets.only(right: 24,top: 20,bottom: 20),
                child: RichText(text: TextSpan(
                  children: [
                    TextSpan(
                        text: '提交问题',
                        style: TextStyle(color: MyColors.FF999999, fontSize: 12)),
                    WidgetSpan(
                      child: Padding(
                        padding: EdgeInsets.only(left: 10),
                        child: Image.asset(R.assetsImgIcon48, width: 7,),
                      ),
                    ),
                  ],
                )),
              ),
            ],
          ),
        ),
        onTap: (){
          // Navigator.push(context, MaterialPageRoute(builder: (_)=> ChangeNotifierProvider(create: (_)=>FeedBackModel(),child: FeedBackPage(),)));
        },
      ),
    );
  }
}
